Page({

   /**
    * 页面的初始数据
    */
   data: {
      mpwItemConfig: [{
            title: "操作反馈",
            children: [{
               path: "/pages/comp-control/dist/toast/toast",
               type: "Toast",
               title: "提示框"
            }, {
               path: "/pages/comp-control/dist/dialog/dialog",
               type: "Dialog",
               title: "对话框"
            }, {
               path: "/pages/comp-control/dist/popup/popup",
               type: "Popup",
               title: "面板"
            }, {
               path: "/pages/comp-control/dist/spreads/spreads",
               type: "Spreads",
               title: "侧滑"
            }, {
               path: "/pages/comp-control/dist/sheet/sheet",
               type: "ActionSheet",
               title: "菜单"
            }]
         },
         {
            title: "功能性控件",
            children: [{
               path: "/pages/comp-control/dist/city/city",
               type: "city select",
               title: "城市选择"
            }]
         },
         {
            title: "提示引导",
            children: [{
               path: "/pages/comp-control/dist/tips/tips",
               type: "tips",
               title: "引导"
            }, {
               path: "/pages/comp-control/dist/message/message",
               type: "message",
               title: "通告"
            }]
         },
         {
            title: "布局导航",
            children: [{
               path: "/pages/comp-control/dist/tabbar/tabbar",
               type: "tabbar",
               title: "自定义底部导航"
            }, 
            // {
            //    path: "/pages/comp-control/dist/toast/toast",
            //    type: "list",
            //    title: "列表"
            // }, {
            //    path: "/pages/comp-control/dist/toast/toast",
            //    type: "tabs",
            //    title: "顶部选项卡"
            // }
            ]
         },
         {
            title: "加载等待",
            children: [{
               path: "/pages/comp-control/dist/rayline-loading/rayline-loading",
               type: "loading",
               title: "加载"
            }]
         },
         // {
         //    title: "icon",
         //    children: [{
         //       path: "/pages/comp-control/dist/toast/toast",
         //       type: "icon",
         //       title: "徽章"
         //    }]
         // },
         // {
         //    title: "表单类",
         //    children: [{
         //       path: "/pages/comp-control/dist/toast/toast",
         //       type: "search",
         //       title: "搜索框"
         //    }]
         // },
         // {
         //    title: "手势类",
         //    children: [{
         //       path: "/pages/comp-control/dist/toast/toast",
         //       type: "swiperItem",
         //       title: "侧滑"
         //    }]
         // },
        {
          title: "扩展功能",
          children: [{
            path: "/pages/comp-control/dist/refresh/index",
            type: "refresh",
            title: "下拉刷新"
          }]
        },
      ]
   },
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function(options) {},
   // wx.showActionSheet({
   //    itemList: [],
   //    itemColor: '',
   //    success: function(res) {},
   //    fail: function(res) {},
   //    complete: function(res) {},
   // })
   mpwComItemClick(res) {
      wx.navigateTo({
         url: res.currentTarget.dataset.path,
      })
   },
})
